package dem1;

/**
 * Created with Intellij IDEA.
 * Description:
 * User: 33013
 * Date: 2023-04-21
 * Time: 15:56
 */

public class Test {
    public static void main(String[] args) {
        BinaryTree tree = new BinaryTree();
        BinaryTree.TreeNode newTree = tree.createTree();
        tree.preOrder(newTree);
        System.out.println();
        tree.inOrder(newTree);
        System.out.println();
        tree.postOrder(newTree);
        System.out.println();
        tree.size(newTree);
        int size2 = tree.size2(newTree);
        System.out.println(BinaryTree.nodeSize);
        System.out.println(size2);
        System.out.println("--------------------------");
        int leafsize = tree.getLeafNodeCount2(newTree);
        System.out.println(leafsize);
        tree.getLeafNodeCount1(newTree);
        System.out.println(BinaryTree.leafSize);
        System.out.println("--------------------------");
        System.out.println(tree.getHeight(newTree));
        System.out.println("----------------------------");
        tree.levelOrder(newTree);
        BinaryTree.TreeNode tree1 = tree.find(newTree,'G');
        System.out.println("--------------------");
        System.out.println(tree1.val);
        System.out.println("----------------ha");
        System.out.println(tree.isCompleteTree(newTree));
    }
}
